package com.bipa.bean;

import java.util.List;

/**
 * Order 数据传输类
 * @author CHUNLONG.LUO
 * @email 584614151@qq.com
 * @date 2019-05-05 21:31:40
 * @version 1.0
 */
public class Order implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	//订单id
	private int id;
	//订单编号
	private String order_code;
	//下单时间
	private java.util.Date create_date;
	private java.util.Date send_date;
	//订单状态
	private String status;
	//订单总金额
	private double amount;
	//用户id
	private int user_id;
	//支付状态
	private String payStatus;
	//定义集合用于封装订单详情信息
	private List<OrderItem> items;

	/** setter and getter method */
	public void setId(int id){
		this.id = id;
	}
	public int getId(){
		return this.id;
	}
	public void setOrder_code(String order_code){
		this.order_code = order_code;
	}
	public String getOrder_code(){
		return this.order_code;
	}
	public void setCreate_date(java.util.Date create_date){
		this.create_date = create_date;
	}
	public java.util.Date getCreate_date(){
		return this.create_date;
	}
	public void setSend_date(java.util.Date send_date){
		this.send_date = send_date;
	}
	public java.util.Date getSend_date(){
		return this.send_date;
	}
	public void setStatus(String status){
		this.status = status;
	}
	public String getStatus(){
		return this.status;
	}
	public void setAmount(double amount){
		this.amount = amount;
	}
	public double getAmount(){
		return this.amount;
	}
	public void setUser_id(int user_id){
		this.user_id = user_id;
	}
	public int getUser_id(){
		return this.user_id;
	}

	public String getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(String payStatus) {
		this.payStatus = payStatus;
	}

	/**
	 * @return the items
	 */
	public List<OrderItem> getItems() {
		return items;
	}
	/**
	 * @param items the items to set
	 */
	public void setItems(List<OrderItem> items) {
		this.items = items;
	}

}